<?php /* Smarty version Smarty-3.1.19, created on 2017-11-06 10:04:15
         compiled from "C:\wamp\www\zhxykaoqin\sdk\theme\install\views\index.html" */ ?>
<?php /*%%SmartyHeaderCode:168159ffc31fc04888-28888610%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ac2ad8a94446a9cd0b42ddfdca9e021c30acf868' => 
    array (
      0 => 'C:\\wamp\\www\\zhxykaoqin\\sdk\\theme\\install\\views\\index.html',
      1 => 1506425225,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '168159ffc31fc04888-28888610',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'theme' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_59ffc32000e153_06926398',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59ffc32000e153_06926398')) {function content_59ffc32000e153_06926398($_smarty_tpl) {?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>系统安装</title>
<link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/css/ace.min.css" rel="stylesheet">
<link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/css/ace-rtl.min.css" rel="stylesheet">
<link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/style/base.css" rel="stylesheet" type="text/css">
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/jquery.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/jquery.fn.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/tooltipbox.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/jquery.form.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/jquery.validate.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/jquery.cookie.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/bootstrap-3.3.7-dist/js/ace.min.js"></script>
</head>
<body>
<div class="main-content">
<div class="page-content">
  <div class="page-content-area" style="opacity: 0.8;"> <br>
    <div class="page-header">
      <h1> 系统安装 <small><i class="ace-icon fa fa-angle-double-right"></i> 配置信息 </small> </h1>
    </div>
    <div class="row">
      <div class="panel panel-default">
        <div class="panel-body table-responsive">
          <form method="post" class="form-horizontal" role="form" id="submitform" onsubmit="return false">
          	<div class="panel panel-info">
                <div class="panel-heading">
                    文件权限检查
                </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name"><?php echo @constant('YD_ROOT');?>
config/config.php</label>
                &nbsp;&nbsp;&nbsp;<?php if (is_writable((@constant('YD_ROOT')).("config/config.php"))) {?><i class="glyphicon glyphicon-ok green"></i><?php } else { ?><i class="glyphicon glyphicon-remove dengar"><?php }?></i>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name"><?php echo @constant('YD_ROOT');?>
data/install</label>
                &nbsp;&nbsp;&nbsp;<?php if (is_writable((@constant('YD_ROOT')).("data/install"))) {?><i class="glyphicon glyphicon-ok green"></i><?php } else { ?><i class="glyphicon glyphicon-remove dengar"><?php }?></i>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name"><?php echo @constant('YD_ROOT');?>
data/logs</label>
                &nbsp;&nbsp;&nbsp;<?php if (is_writable((@constant('YD_ROOT')).("data/logs"))) {?><i class="glyphicon glyphicon-ok green"></i><?php } else { ?><i class="glyphicon glyphicon-remove dengar"><?php }?></i>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name"><?php echo @constant('YD_ROOT');?>
data/runtime</label>
                &nbsp;&nbsp;&nbsp;<?php if (is_writable((@constant('YD_ROOT')).("data/runtime"))) {?><i class="glyphicon glyphicon-ok green"></i><?php } else { ?><i class="glyphicon glyphicon-remove dengar"><?php }?></i>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name"><?php echo @constant('YD_ROOT');?>
data/upload</label>
                &nbsp;&nbsp;&nbsp;<?php if (is_writable((@constant('YD_ROOT')).("data/upload"))) {?><i class="glyphicon glyphicon-ok green"></i><?php } else { ?><i class="glyphicon glyphicon-remove dengar"><?php }?></i>
              </div>
            </div>
          	<div class="panel panel-info">
                <div class="panel-heading">
                    数据库配置
                </div>
            </div>
			<div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="name">数据库地址</label>
                <input type="text" class="form-control" id="host" name="host" value="localhost" required>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="gname">数据库名称</label>
                <input type="text" class="form-control" id="dbname" name="dbname" value="" required>
              	<input type="checkbox" value="-- " name="createdb">使用已存在数据库
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="email">数据库用户名</label>
                <input type="text" class="form-control" id="user" name="user" value="" required>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="password">数据库密码</label>
                <input type="text" class="form-control" id="pwd" name="pwd" value="" required>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="phone">数据库表前缀</label>
                <input type="text" class="form-control" id="prefix" name="prefix" value="dlc_" required>
              </div>
            </div>  
          	<div class="panel panel-info">
                <div class="panel-heading">
                    后台管理员
                </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="password">管理员账号</label>
                <input type="text" class="form-control" id="email" name="email" value="admin@admin.com" required>
              </div>
            </div>
            <div class="form-group ">
              <div class="col-md-6">
                <label class="control-label" for="phone">管理员密码</label>
                <input type="text" class="form-control" id="password" name="password" value="111111" required>
              </div>
            </div>  
                      
            <div class="form-group">
              <div class="col-md-6">
                <button type="submit" class="btn btn-primary btn-lg btn-submit">确定安装</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<script>
var isbusy = false;
$(function(){
	$('#submitform').validate({
		focusInvalid: true,
		rules: {
			//title: {
				//required: true
			//}
		}
	});
	$('.btn-submit').click(function(){
		if(!$('#submitform').valid())return false;
		if(isbusy)return false;
		isbusy = true;
		tooltipbox.loading('正在执行操作...');
		$.post(location.href, $('#submitform').serialize(), function(res){
		    if(res.code == 1){
				location.href = '<?php echo siteurl("con=admin/index");?>
';
			}
			tooltipbox.clear();
			tooltipbox.alert(res.msg);	
			isbusy = false;
		}, 'json').error(function(a, b, c){
			tooltipbox.clear();
			tooltipbox.show('数据或网络错误');
			isbusy = false;
		});
	});
});
</script> 
</body>
</html>
<?php }} ?>
